/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xs_user.entity;

import java.util.List;
import com.google.common.collect.Lists;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 用户信息Entity
 * @author 天竹子
 * @version 2021-07-15
 */
@Data
public class XsUser extends DataEntity<XsUser> {
	
	private static final long serialVersionUID = 1L;
	@ExcelField(title="名称", align=2, sort=1)
	private String nickname;		// 名称
	@ExcelField(title="手机号", align=2, sort=2)
	private String phone;		// 手机号
	@ExcelField(title="头像", align=2, sort=3)
	private String img;		// 头像
	@ExcelField(title="密码", align=2, sort=4)
	private String password;		// 密码
	@ExcelField(title="支付密码", align=2, sort=5)
	private String payPassword;		// 支付密码
	@ExcelField(title="身份等级", align=2, sort=6)
	private Integer identityLevel;		// 身份等级
	@ExcelField(title="会员等级(1.普通会员2.黑铁会员3.青铜会员4.白银会员5.黄金会员6.白金会员7.钻石会员8.金钻会员)", dictType="member-level", align=2, sort=7)
	private String memberLevel;		// 会员等级(1.普通会员2.黑铁会员3.青铜会员4.白银会员5.黄金会员6.白金会员7.钻石会员8.金钻会员)
	@ExcelField(title="邀请者账号", align=2, sort=8)
	private String yqm;		// 邀请者账号
	private List<XsUserAssets> xsUserAssetsList = Lists.newArrayList();		// 子表列表
	private List<XsUserRelated> xsUserRelatedList = Lists.newArrayList();		// 子表列表
	
	public XsUser() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}

	public XsUser(String id){
		super(id);
	}
}